package com.bdqn.ch01.entity;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;
import org.springframework.stereotype.Controller;
import org.springframework.stereotype.Repository;
import org.springframework.stereotype.Service;

import java.io.Serializable;

@Data
@ConfigurationProperties(prefix = "com.bdqn")
@Component
public class User implements Serializable {

    private String name;
    private String email;


    public String getName() {
        return this.name;
    }

    public String getEmail() {
        return this.email;
    }

}
